package com.yanqu.road.server.cmd.activity.washe.cross;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.WasheProto;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.command.Command;
import com.yanqu.road.server.manger.activity.washe.WasheMgr;
import com.yanqu.road.server.protocol.GameProtocol;
import io.netty.channel.ChannelHandlerContext;

@Cmd(code = GameProtocol.S_WASHE_SYNC_DAY_SCENE, desc = "")
public class WasheSyncDaySceneFromCrossCmd implements Command {

    @Override
    public void execute(ChannelHandlerContext ctx, YanQuMessage yanQuMessage) throws Exception {
        WasheProto.ChannelWasheSyncDaySceneRespMsg respMsg = WasheProto.ChannelWasheSyncDaySceneRespMsg.parseFrom(yanQuMessage.getBytes());
        WasheMgr.updateTodayScene(respMsg.getSceneIdList());
    }
}
